// 超出长度。。。
@mixin ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

//  居中背景图
@mixin bg($url) {
    background-image: url($url);
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    background-size: contain;
}

//元素布局  居中  水平垂直居中
@mixin center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

//元素布局  居中  水平居中
@mixin center-lr {
    display: flex;
    justify-content: space-between;
}

//元素布局  居中  垂直居中
@mixin center-tb {
    display: flex;
    align-items: center;
}

// 图片在div中上下左右居中
@mixin imgwrap($w, $h) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: $w;
    height: $h;
    img {
        max-width: 100%;
        max-height: 100%;
    }
}

@mixin btnblue($w, $h) {
    width: $w;
    height: $h;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 0;
    background-color: $bg-blue;
    color: #fff;
    font-size: 16px;
}